#ifndef RECT_H
#define RECT_H

#include <string>

class Point {
public:
     Point(int x=0, int y=0);
     int x() const;
     void setX(int x);
     int y() const;
     void setY(int y);
     std::string toString();

private:
     int m_x;
     int m_y;
};

class Rect {
public:
     Rect(int x=0, int y=0, int width=0, int height=0);
     int x() const;
     void setX(int x);
     int y() const;
     void setY(int y);
     int width() const;
     void setWidth(int width);
     int height() const;
     void setHeight(int height);
     bool inside(Point p);
     std::string toString();

private:
     int m_x;
     int m_y;
     int m_width;
     int m_height;
};

#endif
